package com.ss.android.article.base.feature.detail2;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.ss.android.article.base.feature.detail2.view.NewDetailActivity;
import com.ss.android.article.base.feature.detail2.view.NewVideoDetailActivity;
import com.ss.android.article.base.feature.model.Article;

public final class DetailIntentCreatorImpl implements DetailIntentCreator {
    public DetailIntentCreatorImpl() {

    }

    public final Intent createNewDetailIntent(Context context, Bundle bundle) {
        Intent intent = new Intent(context, NewDetailActivity.class);
        if(bundle != null) {
            intent.putExtras(bundle);
        }
        return intent;
    }

    public final void startNewDetailActivity(Context context, Article article, long ad_id, String category) {
        NewDetailActivity.startNewDetailActivity(context, article, ad_id, category);
    }

    public final Intent createNewVideoDetailIntent(Context context, Bundle bundle) {
        Intent intent = new Intent(context, NewVideoDetailActivity.class);
        if(bundle != null) {
            intent.putExtras(bundle);
        }
        return intent;
    }
}

